<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
	<title>01首页</title>
</head>
<body style="">

<style type="text/css">
body {
	  height: 5000px; width: 100%; overflow-x: hidden;
	 background-size: auto auto; 
}
* { margin: 0; padding: 0; }
@media (max-width: 300px) { 
body {  } 
}
</style>

<script type="text/javascript">
function getHtmlDocName() {
    var str = window.location.href;
    str = str.substring(str.lastIndexOf("/") + 1);
    str = str.substring(0, str.lastIndexOf("."));
    return str;
}
var name = getHtmlDocName();
var cssText = "background: url('jpg/"+name+".jpg') center 0 no-repeat;"

if (screen.width<600) {
	document.body.setAttribute('style',cssText+'background-size: 100% auto');
}
else {
	document.body.setAttribute('style',cssText+'background-size: auto auto');
}
</script>
</body>
</html>